package kokist.android.shichaanimator;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import java.util.List;

/**
 * Created by  Hao on 2015/5/27.
 * Email  695686241@qq.com
 */
public class ParllaxFragmentPageAdapter extends FragmentPagerAdapter {
    private final List<ParllaxFragemnt> fragments;

    public ParllaxFragmentPageAdapter(FragmentManager fm ,List<ParllaxFragemnt> fragemnts) {

        super(fm);
        this.fragments=fragemnts;
    }

    @Override
    public Fragment getItem(int position) {
        return fragments.get(position);
    }

    @Override
    public int getCount() {
        return fragments.size();
    }
}
